package com.feign.hystrix;

import com.feign.SmsFeignApi;
import com.util.JsonResult;
import org.springframework.stereotype.Component;

@Component
public class SmsFeignHystrix implements SmsFeignApi {
    @Override
    public JsonResult sendVerifyCode(String phone) {
        System.out.println("出问题啦，走降级方法啦..SmsFeignHystrix..sendVerifyCode..");
        return null;
    }

    @Override
    public JsonResult checkVerifyCode(String phone, String verifyCode) {
        System.out.println("出问题啦，走降级方法啦..SmsFeignHystrix..checkVerifyCode..");
        return null;
    }
}